package com.yjian.controller.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by xuxiaobao on 2017/9/29.
 */
@Data
public class GetMemberByPhoneRequest {
    @NotEmpty(message = "输入内容不能为空")
    @Length(max = 11, message = "输入手机号不正确")
    String phone;
    @NotNull(message = "页码不能为空")
    @Min(value = 1,message = "页码最小是1")
    Integer pageNo;
    @NotNull(message = "页码不能为空")
    @Min(value = 1,message = "行数最小是1")
    Integer pageSize;
}
